package br.com.werp.regras.geral.interfaces.algoritimo;

import java.io.Serializable;

/**
 * @author Sobreira
 * Criado em 26/07/2005
 */
public abstract class IdVirtual implements Serializable{
    public static final String[] EXCLUIDAS = {"idvirtual","id"};
    private boolean idVirtual;

    public abstract int getId();
    public abstract void setId(int id);
    public boolean isIdVirtual() {

        return idVirtual;
    }
    public void setIdVirtual(boolean idVirtual) {
        this.idVirtual = idVirtual;
    }
    public boolean equals(Object obj) {

        IdVirtual idVirtual = (IdVirtual) obj;

        return this.getId() == idVirtual.getId();
    }
    public int hashCode() {

        return getId();
    }
}
